package scene01_Home;

import android.graphics.Paint;
import android.graphics.Paint.Align;
import baseClass.Layer;
import baseClass.Sprite_Default;
import baseClass.Text;
import mainSrc.GlobalSaveData;

public class Layer04_Editor
  extends Layer
{
  public boolean bTxtChanger = false;
  public int iAnswer1 = 15;
  public int iAnswer1_max = 100;
  public int iAnswer1_min = 5;
  public int iAnswer2 = 1;
  public int iAnswer2_max;
  public int iAnswer2_min;
  private int iLanguage_Cmp = -1;
  public Sprite_ButtonEditor spd_01Left;
  public Sprite_ButtonEditor spd_01Right;
  public Sprite_ButtonEditor spd_02Left;
  public Sprite_ButtonEditor spd_02Right;
  public Sprite_ButtonEditorNext spd_Next;
  public Sprite_ButtonEditorPrev spd_Prev;
  public Sprite_Default spd_background;
  public Sprite_Default spd_btnbg01;
  public Sprite_Default spd_btnbg02;
  public Sprite_Default spd_txtInformation;
  public Sprite_Default spd_txtQuestion1;
  public Sprite_Default spd_txtQuestion2;
  public Sprite_Default spd_txtQuestion3;
  public Text txtAnswer1;
  public Text txtAnswer2;
  
  public Layer04_Editor()
  {
    if (GlobalSaveData.GetInstance().iLanguage == 0)
    {
      this.spd_txtQuestion1 = new Sprite_Default(2130837541, 710, 50, 0.0F, 0.0F);
      this.spd_txtQuestion2 = new Sprite_Default(2130837550, 710, 80, 0.0F, 0.0F);
      this.spd_txtQuestion3 = new Sprite_Default(2130837551, 710, 50, 0.0F, 0.0F);
    }
    for (this.spd_txtInformation = new Sprite_Default(2130837552, 400, 30, 0.0F, 0.0F);; this.spd_txtInformation = new Sprite_Default(2130837565, 400, 30, 0.0F, 0.0F))
    {
      this.spd_background = new Sprite_Default(2130837538, 1120, 520, 640.0F, 310.0F);
      this.spd_btnbg01 = new Sprite_Default(2130837539, 280, 80, 1000.0F, 245.0F);
      this.spd_btnbg02 = new Sprite_Default(2130837539, 280, 80, 1000.0F, 370.0F);
      this.txtAnswer1 = new Text(60, 0, true, 4);
      this.txtAnswer2 = new Text(60, 0, true, 4);
      this.spd_Next = new Sprite_ButtonEditorNext(2130837578, 220, 45, 1030.0F, 510.0F);
      this.spd_Prev = new Sprite_ButtonEditorPrev(2130837579, 220, 45, 250.0F, 510.0F);
      this.spd_01Left = new Sprite_ButtonEditor(2130837577, 70, 66, 900.0F, 246.0F, 0, 2);
      this.spd_01Right = new Sprite_ButtonEditor(2130837580, 70, 66, 1100.0F, 246.0F, 1, 2);
      this.spd_02Left = new Sprite_ButtonEditor(2130837577, 70, 66, 900.0F, 371.0F, 0, 3);
      this.spd_02Right = new Sprite_ButtonEditor(2130837580, 70, 66, 1100.0F, 371.0F, 1, 3);
      this.txtAnswer1.paint.setTextAlign(Paint.Align.CENTER);
      this.txtAnswer2.paint.setTextAlign(Paint.Align.CENTER);
      this.txtAnswer1.stroke_paint.setTextAlign(Paint.Align.CENTER);
      this.txtAnswer2.stroke_paint.setTextAlign(Paint.Align.CENTER);
      this.txtAnswer1.string = "00";
      this.txtAnswer2.string = "00";
      this.spd_txtInformation.setPosition(640.0F, 510.0F);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
      this.spd_txtQuestion2.setPosition(480.0F, 245.0F);
      this.spd_txtQuestion3.setPosition(480.0F, 370.0F);
      this.txtAnswer1.setPosition(1000.0F, 265.0F);
      this.txtAnswer2.setPosition(1000.0F, 390.0F);
      AddSprite(this.spd_background);
      AddSprite(this.spd_btnbg01);
      AddSprite(this.spd_btnbg02);
      AddSprite(this.spd_txtInformation);
      AddSprite(this.spd_txtQuestion1);
      AddSprite(this.spd_txtQuestion2);
      AddSprite(this.spd_txtQuestion3);
      AddSprite(this.txtAnswer1);
      AddSprite(this.txtAnswer2);
      AddSprite(this.spd_Next);
      AddSprite(this.spd_Prev);
      AddSprite(this.spd_01Left);
      AddSprite(this.spd_01Right);
      AddSprite(this.spd_02Left);
      AddSprite(this.spd_02Right);
      this.bTxtChanger = false;
      return;
      this.spd_txtQuestion1 = new Sprite_Default(2130837541, 710, 50, 0.0F, 0.0F);
      this.spd_txtQuestion2 = new Sprite_Default(2130837563, 710, 80, 0.0F, 0.0F);
      this.spd_txtQuestion3 = new Sprite_Default(2130837564, 710, 50, 0.0F, 0.0F);
    }
  }
  
  public void update()
  {
    if (this.iLanguage_Cmp != GlobalSaveData.GetInstance().iLanguage)
    {
      this.iLanguage_Cmp = GlobalSaveData.GetInstance().iLanguage;
      if (this.iLanguage_Cmp != 0) {
        break label141;
      }
      this.spd_txtQuestion2.recycleBitmap();
      this.spd_txtQuestion3.recycleBitmap();
      this.spd_txtInformation.recycleBitmap();
      this.spd_txtQuestion2.setBitmap(2130837550);
      this.spd_txtQuestion3.setBitmap(2130837551);
      this.spd_txtInformation.setBitmap(2130837552);
    }
    for (;;)
    {
      switch (this.spd_Next.iCurrentLevel)
      {
      default: 
        return;
        label141:
        this.spd_txtQuestion2.recycleBitmap();
        this.spd_txtQuestion3.recycleBitmap();
        this.spd_txtInformation.recycleBitmap();
        this.spd_txtQuestion2.setBitmap(2130837563);
        this.spd_txtQuestion3.setBitmap(2130837564);
        this.spd_txtInformation.setBitmap(2130837565);
      }
    }
    this.spd_Prev.visible = false;
    this.spd_btnbg01.visible = true;
    this.spd_btnbg02.visible = true;
    this.spd_01Left.visible = true;
    this.spd_01Right.visible = true;
    this.spd_02Left.visible = true;
    this.spd_02Right.visible = true;
    this.iAnswer1_min = 5;
    this.iAnswer1_max = 100;
    this.spd_txtQuestion1.visible = true;
    this.spd_txtQuestion2.visible = true;
    this.spd_txtQuestion3.visible = true;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label400;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837541);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.iAnswer1_min = 5;
      this.iAnswer1_max = 100;
      this.iAnswer2_min = 0;
      this.iAnswer2_max = 1;
      this.txtAnswer1.string = this.iAnswer1;
      if (this.iAnswer2 != 1) {
        break;
      }
      this.txtAnswer2.string = "YES";
      return;
      label400:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837541);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
    }
    this.txtAnswer2.string = "NO";
    return;
    this.spd_Prev.visible = true;
    this.spd_btnbg01.visible = true;
    this.spd_btnbg02.visible = false;
    this.spd_01Left.visible = true;
    this.spd_01Right.visible = true;
    this.spd_02Left.visible = false;
    this.spd_02Right.visible = false;
    this.spd_txtQuestion1.visible = true;
    this.spd_txtQuestion2.visible = true;
    this.spd_txtQuestion3.visible = false;
    this.iAnswer1_min = 5;
    this.iAnswer1_max = 100;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label608;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837548);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      this.txtAnswer2.string = "";
      return;
      label608:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837548);
    }
    this.spd_Prev.visible = true;
    this.spd_btnbg01.visible = true;
    this.spd_btnbg02.visible = false;
    this.spd_01Left.visible = true;
    this.spd_01Right.visible = true;
    this.spd_02Left.visible = false;
    this.spd_02Right.visible = false;
    this.spd_txtQuestion1.visible = true;
    this.spd_txtQuestion2.visible = true;
    this.spd_txtQuestion3.visible = false;
    this.iAnswer1_min = 5;
    this.iAnswer1_max = 100;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label795;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837540);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      this.txtAnswer2.string = "";
      return;
      label795:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837540);
    }
    this.spd_Prev.visible = true;
    this.spd_btnbg01.visible = true;
    this.spd_btnbg02.visible = false;
    this.spd_01Left.visible = true;
    this.spd_01Right.visible = true;
    this.spd_02Left.visible = false;
    this.spd_02Right.visible = false;
    this.spd_txtQuestion1.visible = true;
    this.spd_txtQuestion2.visible = true;
    this.spd_txtQuestion3.visible = false;
    this.iAnswer1_min = 5;
    this.iAnswer1_max = 100;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label993;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837542);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      this.txtAnswer2.string = "";
      return;
      label993:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837542);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
    }
    this.spd_btnbg01.visible = true;
    this.spd_btnbg02.visible = false;
    this.spd_01Left.visible = true;
    this.spd_01Right.visible = true;
    this.spd_02Left.visible = false;
    this.spd_02Right.visible = false;
    this.iAnswer1_min = 0;
    this.iAnswer1_max = 5;
    if (this.iAnswer1 > this.iAnswer1_max) {
      this.iAnswer1 = this.iAnswer1_min;
    }
    this.spd_txtQuestion1.visible = true;
    this.spd_txtQuestion2.visible = false;
    this.spd_txtQuestion3.visible = false;
    if (!this.bTxtChanger)
    {
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label1206;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837549);
      this.spd_txtQuestion1.setPosition(480.0F, 245.0F);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      this.txtAnswer2.string = "";
      return;
      label1206:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837562);
      this.spd_txtQuestion1.setPosition(480.0F, 245.0F);
    }
    this.spd_btnbg01.visible = true;
    this.spd_btnbg02.visible = true;
    this.spd_01Left.visible = true;
    this.spd_01Right.visible = true;
    this.spd_02Left.visible = true;
    this.spd_02Right.visible = true;
    this.iAnswer1_min = 5;
    this.iAnswer1_max = 100;
    this.iAnswer2_min = 0;
    this.iAnswer2_max = 1;
    this.spd_txtQuestion1.visible = true;
    this.spd_txtQuestion2.visible = true;
    this.spd_txtQuestion3.visible = true;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label1425;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837543);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      if (this.iAnswer2 != 1) {
        break;
      }
      this.txtAnswer2.string = "YES";
      return;
      label1425:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837543);
      this.spd_txtQuestion1.setPosition(480.0F, 120.0F);
    }
    this.txtAnswer2.string = "NO";
    return;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label1550;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837544);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      if (this.iAnswer2 != 1) {
        break;
      }
      this.txtAnswer2.string = "YES";
      return;
      label1550:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837544);
    }
    this.txtAnswer2.string = "NO";
    return;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label1664;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837545);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      if (this.iAnswer2 != 1) {
        break;
      }
      this.txtAnswer2.string = "YES";
      return;
      label1664:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837545);
    }
    this.txtAnswer2.string = "NO";
    return;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label1778;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837546);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      if (this.iAnswer2 != 1) {
        break;
      }
      this.txtAnswer2.string = "YES";
      return;
      label1778:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837546);
    }
    this.txtAnswer2.string = "NO";
    return;
    if (!this.bTxtChanger)
    {
      this.iAnswer1 = 15;
      if (GlobalSaveData.GetInstance().iLanguage != 0) {
        break label1892;
      }
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837547);
    }
    for (;;)
    {
      this.bTxtChanger = true;
      this.txtAnswer1.string = this.iAnswer1;
      if (this.iAnswer2 != 1) {
        break;
      }
      this.txtAnswer2.string = "YES";
      return;
      label1892:
      this.spd_txtQuestion1.recycleBitmap();
      this.spd_txtQuestion1.setBitmap(2130837547);
    }
    this.txtAnswer2.string = "NO";
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     scene01_Home.Layer04_Editor
 * JD-Core Version:    0.7.0.1
 */